# encoding: utf-8
class CreateTasks < ActiveRecord::Migration
  def self.up
    create_table :tasks do |t|
      t.integer :workpackage_id
      t.string :name
      t.text :description
      t.string :status, :default => 'initial'
      t.integer :progress, :default => 0
      t.float :planned
      t.float :performed, :default => 0

      t.timestamps
    end
  end

  def self.down
    drop_table :tasks
  end
end
